home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / xvisrc.zip / SUNVIEW.H < prev    next >
C/C++ Source or Header  |  1992-07-28  |  2KB  |  84 lines

  1. /* Copyright (c) 1990,1991,1992 Chris and John Downey */
  2. /***
  3.  
  4. * @(#)sunview.h    2.1 (Chris & John Downey) 7/29/92
  5.  
  6. * program name:
  7.     xvi
  8. * function:
  9.     PD version of UNIX "vi" editor, with extensions.
  10. * module name:
  11.     sunview.h
  12. * module function:
  13.     Definitions for terminal interface module for SunView.
  14. * history:
  15.     STEVIE - ST Editor for VI Enthusiasts, Version 3.10
  16.     Originally by Tim Thompson (twitch!tjt)
  17.     Extensive modifications by Tony Andrews (onecom!wldrdg!tony)
  18.     Heavily modified by Chris & John Downey
  19.  
  20. ***/
  21.  
  22. /*
  23.  * Definitions for communications link between front end & back end
  24.  * processes.
  25.  */
  26. #define XYDIGITS    3    /*
  27.                  * Number of hex. digits encoding row
  28.                  * or column position of mouse in
  29.                  * window.
  30.                  */
  31.  
  32. #define PREFIXCHAR    '\022'    /* control-R */
  33.  
  34. /*
  35.  * Size of screen.
  36.  */
  37. extern    unsigned int    Rows;
  38. extern    unsigned int    Columns;
  39.  
  40. /*
  41.  * We can't do these:
  42.  */
  43. #define invis_cursor()        /* invisible cursor (very optional) */
  44. #define vis_cursor()        /* visible cursor (very optional) */
  45.  
  46. #define can_scroll_area FALSE    /* true if we can set scroll region */
  47. #define scroll_up(s,e,n)
  48. #define scroll_down(s,e,n)
  49. #define can_del_line    TRUE    /* true if we can delete screen lines */
  50. /*
  51.  * tty_linefeed() isn't needed if can_del_line is TRUE.
  52.  */
  53. #define tty_linefeed()
  54. #define can_ins_line    TRUE    /* true if we can insert screen lines */
  55. #define can_inschar    TRUE    /* true if we can insert characters */
  56. #define cost_goto    1    /*
  57.                  * Cost of doing a goto.
  58.                  *
  59.                  * This is a guess, but it's probably
  60.                  * reasonable.
  61.                  */
  62. /*
  63.  * Colour handling (only in monochrome at the moment).
  64.  */
  65. #define DEF_COLOUR    1    /* maps to normal text colours */
  66. #define DEF_STCOLOUR    2    /* maps to reverse video */
  67. #define DEF_SYSCOLOUR    0    /* maps to normal text colours */
  68.  
  69. extern    void        outchar P((int c));
  70. extern    void        outstr P((char *s));
  71. extern    void        alert P((void));
  72. extern    void        flush_output P((void));
  73. extern    void        set_colour P((int c));
  74. extern    void        tty_goto P((int row, int col));
  75. extern    void        insert_line P((void));
  76. extern    void        delete_line P((void));
  77. extern    void        inschar P((int));
  78. extern    void        erase_line P((void));
  79. extern    void        erase_display P((void));
  80. extern    void        tty_open P((unsigned int *, unsigned int *));
  81. extern    void        tty_startv P((void));
  82. extern    void        tty_endv P((void));
  83. extern    void        tty_close P((void));
  84.